﻿
@model PTUDW_CNTN2010_F_CDT.Models.CommentModel

@using(Html.BeginForm("AddComment","Comment",FormMethod.Post))
{
    <fieldset>
        <legend>Comment</legend>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Comment, new { @placeholder = "Your comment here"});
            @Html.ValidationMessageFor(model => model.Comment)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Email, new { @placeholder = "Enter your email"});
            @Html.ValidationMessageFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Name, new { @placeholder = "Enter your name"});
            @Html.ValidationMessageFor(model => model.Name)
        </div>
        <div>
        <input class="submit-btn" type="submit" value="Post comment" />
        </div>
    </fieldset>
}